package com.atwisdom.star.common.util;

import org.apache.commons.beanutils.BeanMap;
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.BeanWrapperImpl;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;

/**
 * LocalDateTime工具
 */
public class LocalDateTimeUtil {

    public static String now() {
        return LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
    }

    public static String now(String dateTimeFormatter) {
        return LocalDateTime.now().format(DateTimeFormatter.ofPattern(dateTimeFormatter));
    }

}